package com.njwb.day18.factory;

public class main {
    public static void main(String[] args) {
        Produce produce=new Produce(null,null,0);

        Runnable producerThread=new Custom(produce);
        Runnable consumerThread=new Factory(produce);
        Thread t1=new Thread(producerThread);
        Thread t2=new Thread(consumerThread);

        t1.start();
        t2.start();



    }
}
